package com.cropdoctor.mapper;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cropdoctor.model.dto.CommentDto;
import com.cropdoctor.model.po.CommentPo;
import com.cropdoctor.model.vo.CommentVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.security.core.parameters.P;

import java.util.List;

@Mapper
public interface CommentMapper extends BaseMapper<CommentPo> {
    List<CommentDto> selectTreeNode(@Param("idPost") long idPost, @Param("id") long id);

    List<CommentVO> selectPostListWithUser(@Param("id") long id);

    List<CommentVO> selectCourseListWithUser(@Param("id") long id);
}
